package ast;

public class MethodBodyNode extends Node{
    
	public List varDecList;
	public List stmtList;
	public ReturnStmtNode returnStmt;

    public MethodBodyNode(List varDecList, List stmtList, ReturnStmtNode returnStmt){
        this.left = null;
        this.right = null;
    	this.varDecList = varDecList;
        this.stmtList = stmtList;
        this.returnStmt = returnStmt;
    }
    
    public Object accept(Visitor v){
        return v.visit(this);
    }

}